package com.shop.service;


import com.shop.entity.user.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("user-provider")
public interface UserServiceRest {
    /*验证用户唯一*/
    @RequestMapping("findByUsername")
    public User findByUsername(@RequestParam("usercode")String usercode);
    //用于登录
    @RequestMapping("LoginUser")
    public User LoginUser(@RequestParam("usercode")String usercode,@RequestParam("userpassword") String userpassword);
}
